package com.micro.service.auth.server.config.oauth2;

import com.micro.service.auth.server.dao.OauthRepository;
import com.micro.service.auth.server.model.OauthClientDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @Description: 客户端服务
* @author lvxiucai
* @create 20:15 2017/12/28 
* @last modify by [lvxiucai 20:15 2017/12/28 ]
* @return
*/
@Service("oauthService")
public class OauthServiceImpl implements OauthService {

    @Autowired
    private OauthRepository oauthRepository;

    @Override
    public OauthClientDetails loadOauthClientDetails(String clientId) {
        return oauthRepository.findByClientId(clientId);
    }

}
